package com.wwz.service;

import cn.hutool.core.lang.tree.Tree;
import com.wwz.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wwz.response.DeptList;

import java.util.List;

/**
* @author Admin
* @description 针对表【department】的数据库操作Service
* @createDate 2022-09-07 23:55:56
*/
public interface IDepartmentService extends IService<Department> {

    /**
     * 添加部门
     * @param department
     */
    void addOrUpData(Department department);

    /**
     * 查询所有部门信息
     * @param companyId 企业id
     * @return
     */
    DeptList getList(String companyId);

    /**
     * 删除部门
     * @param id
     */
    void delete(String id);

    /**
     * 树形结构
     * @return
     */
    List<Tree<String>> getTreeList();
}
